package com.strive.village.entity;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
public class SysUser extends BaseEntity {
    private static final long serialVersionUID = 1L;
    private String username;
    private String password;
    private String avatar;
    private String email;
    private String city;
    private LocalDateTime lastLogin;
    private String phone;

    @TableField(exist = false)
    private List<SysRole> roles = new ArrayList<>(); // 存储用户角色信息

}
